From 78d59cc5f86436424e57ecce233a379480c43b7f Mon Sep 17 00:00:00 2001 From: Debian LibreOffice Maintainers Date: Mon, 27 Aug 2012 16:47:58 +0000 Subject: [PATCH] sensible-lomua =================================================================== Gbp-Pq: Name sensible-lomua.diff --- .../data/org/openoffice/Office/Common.xcu | 3 +-- shell/source/unix/misc/senddoc.sh | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/officecfg/registry/data/org/openoffice/Office/Common.xcu b/officecfg/registry/data/org/openoffice/Office/Common.xcu index ad1b88fe5c1..3dfa3142d87 100644 --- a/officecfg/registry/data/org/openoffice/Office/Common.xcu +++ b/officecfg/registry/data/org/openoffice/Office/Common.xcu @@ -665,8 +665,7 @@ - + sensible-lomua diff --git a/shell/source/unix/misc/senddoc.sh b/shell/source/unix/misc/senddoc.sh index a18562b0ae1..64d83b0e43c 100755 --- a/shell/source/unix/misc/senddoc.sh +++ b/shell/source/unix/misc/senddoc.sh @@ -59,6 +59,25 @@ if [ "$1" = "--mailclient" ]; then shift fi +case `basename "$MAILER"` in + sensible-lomua) + if [ -n "$GNOME_DESKTOP_SESSION_ID" -a -x /usr/bin/evolution ]; then + MAILER=/usr/bin/evolution + elif [ -n "$KDE_FULL_SESSION" -a -x /usr/bin/kmail ]; then + MAILER=/usr/bin/kmail + elif [ -x /usr/bin/evolution ]; then + # default + MAILER=/usr/bin/evolution + elif [ -x /usr/bin/icedove ]; then + # fallback + MAILER=/usr/bin/icedove + elif [ -x /usr/bin/thunderbird ]; then + # fallback + MAILER=/usr/bin/thunderbird + fi + ;; +esac + # autodetect mail client from executable name case `basename "$MAILER" | sed 's/-.*$//'` in -- 2.30.2